﻿package com.tudou.skin.common.button
{
    import flash.display.*;
    import flash.geom.*;

    public class PolySelectButton extends SelectButton implements IButton
    {
        protected var baseButton:BaseButton;

        public function PolySelectButton(param1:InteractiveObject, param2:InteractiveObject, param3:DisplayObject, param4:Point = null, param5:Point = null, param6:Point = null)
        {
            super(param1, param2, param3, param4, param5, param6);
            baseButton = new BaseButton();
            addChild(baseButton);
            this.clickContainer = true;
            return;
        }// end function

        public function addStateButton(param1:InteractiveObject, param2:Number = 0, param3:Number = 0, param4:String = null) : void
        {
            baseButton.addStateButton(param1, param2, param3, param4);
            return;
        }// end function

        public function set activeKey(param1:String) : void
        {
            baseButton.activeKey = param1;
            return;
        }// end function

        public function get buttonNum() : uint
        {
            return baseButton.buttonNum;
        }// end function

        public function set activeIndex(param1:int) : void
        {
            baseButton.activeIndex = param1;
            return;
        }// end function

        public function get activeKey() : String
        {
            return baseButton.activeKey;
        }// end function

        public function get activeIndex() : int
        {
            return baseButton.activeIndex;
        }// end function

    }
}
